package com.yanmaohu.nikita.data.expression;

import com.yanmaohu.nikita.data.others.ArrayIndexList;

/**
 * @author Bright Lee
 */
public final class ArrayElementReferenceExpression extends Expression {

    private Expression array;
    private ArrayIndexList arrayIndexList;

    public ArrayElementReferenceExpression(int beginIndex, int endIndex, Expression array, ArrayIndexList arrayIndexList) {
        super(beginIndex, endIndex);
        this.array = array;
        this.arrayIndexList = arrayIndexList;
    }

    public Expression getArray() {
        return array;
    }

    public ArrayIndexList getArrayIndexList() {
        return arrayIndexList;
    }

}
